var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function (req, res, next) {
    if (req.query.id == 1) {
        res.send({
            code: 200,
            message: 'success',
            data: {
                departmentId: 2,
                departmentName: '研发部门',
                status: 1,
                sort: 1,
                remark: '研发部门'
            }
        })
    } else {
        res.send({
            code: 200,
            message: 'success',
            data: {
                departmentId: 3,
                departmentName: '综合部门',
                status: 1,
                sort: 2,
                remark: '综合部门'
            }
        })
    }


});

module.exports = router;
